/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entityopinions;

import java.util.List;

/**
 *
 * @author Diogo
 */
public class TokenWithLEX implements CharSequence{

    int LEXResult; // 0 - caso não pertença a uma entidade e 1 - caso pertença a uma entidade
    String str;
    List<Integer> LEXResults;


    public TokenWithLEX (String str , int LEXResult) {
        this.str = str;
        this.LEXResult = LEXResult;
    }

    public TokenWithLEX (String str , List<Integer> LEXResults) {
        this.str = str;
        this.LEXResults = LEXResults;
        this.LEXResult = -1;
    }

    public int length() {
        return str.length();
    }

    public char charAt(int index) {
        return str.charAt(index);
    }

    public CharSequence subSequence(int start, int end) {
        return str.subSequence(start, end);
    }

    public String toString() {
        return str.toString();
    }

    public int getLEXResult ( ) {
        return this.LEXResult;
    }

    public List<Integer> getLEXResults() {
        return this.LEXResults;
    }

    public String toLowerCase(){
        return this.str.toLowerCase();
    }
}
